<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'users.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="css/center.css" type="text/css">

<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery.validate-1.13.1.js"></script>
<script type="text/javascript" src="MyDatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="js/check.js"></script>
<script type="text/javascript" src="js/validator.js"></script>
</head>

<body>
<h3>发布公告</h3>
<s:if test="#session.admin.tag==0">
	<h4>您的管理权限不足，不能发布公告</h4>
</s:if>
<s:else>
	<form action="bothtext_addBothTextByAdmin" id="NoticeForm"
		method="post" enctype="multipart/form-data" class="Form"
		style="margin-top: 30px;width: 480px;">
		<ul>
			<li>公告内容:</li>
			<li><textarea name="bothText.text" id="TextArea1"
					onkeyup="checkLength120(this);" style="width:470px;height:100px;"></textarea>
			</li>
			<li style="margin-top: 90px;"><span class="wordage">剩余字数：<span
					id="sy" style="color:Red;">120</span> </span></li>

			<li style="margin-bottom: 5px;">有效期选择:<input type="text"
				value="" onClick="WdatePicker()"
				onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:'%y-%M-%d %H:{%m+10}',maxDate:'{%y+1}-%M-%d %H:%m',realDateFmt:'yyyy-MM-dd HH:mm'})"
				style="width: 150px;" name="limitday">
			</li>
			<li>所上传的图片:</li>
			<li><input type="file" name="image">
			</li>
			<li></li>
			<li></li>
			<li></li>
			<li><input type="reset" value="重置内容" class="buttonReset">
				<input type="submit" value="确认发布" class="buttonSubmit">
			</li>
		</ul>
	</form>
	</s:else>
</body>
</html>
